﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Common.Master" AutoEventWireup="true"
    CodeBehind="TempUserLogin.aspx.cs" Inherits="Web.Views.TempUserManage.TempUserLogin" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title>临时用户登录</title>
    <link href="../../Styles/Login_style.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        window.onload = function () {
            self.moveTo(0, 0);
            self.resizeTo(screen.availWidth, screen.availHeight);

            //        document.getElementById('txtUserID').select();
            //        document.getElementById('txtUserID').focus();
        }

        function enterKey(e) {//按enter登录
            var code;
            if (!e) {
                var e = window.event;
            }
            if (e.keyCode) {
                code = e.keyCode;
            }
            else if (e.which) {
                code = e.which;
            }
            if (code == 13) {
                document.getElementById("ctl00_ContentPlaceHolder1_imgBtnLogin").click();
                ///这里是调用执行的方法
                /// return false;
            }
        }

        function redirectLocation() {
            if (window.top != window) {
                window.top.location.reload();
            }
        }

        //重置
        function ClearInputs() {
            //        document.getElementById('txtUserID').value = "";
            //        document.getElementById('txtPasswd').value = "";
        }

    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="wrap">
        <div id="TempUserbanner1_login">
        </div>
        <div id="TempUserbanner2_login">
        </div>
        <div id="TempUserbanner3_login">
            <div id="login_panel">
                <span class="input1">
                    <input type="text" id="txtUserID" name="username" runat="server" class="input_box"
                        onkeydown="enterKey()" />
                </span><span class="input2">
                    <input type="password" id="txtPasswd" name="password" runat="server" class="input_box"
                        onkeydown="enterKey()" />
                </span>
                <div id="btn_login">
                    <input class="button" id="imgBtnLogin" type="Button" runat="server" onserverclick="imgBtnLogin_ServerClick"
                        onmouseover="this.className='over';" onmouseout="this.className='button';" onmousedown="this.className='down';"
                        onmouseup="this.className='over';" value=" " name="Button" onfocus="this.blur()" />
                </div>
            </div>
            <div id="icon_links">
                <ul>
                    <li>
                        <img src="../../images/portal/login/i_link1.png" alt="" class="l_icon" /><a href="../SystemLogin/SystemLogin.aspx">正式用户登录</a></li>
                    <li>
                        <img src="../../images/portal/login/i_link1.png" alt="" class="l_icon" /><a href="RegistTempUser.aspx">申请临时用户</a></li>
                    <%--<li>
                        <img src="../../images/portal/login/i_link2.png" alt="" class="l_icon" /><a href="FindPassWord.aspx">找回密码</a></li>--%>
                </ul>
            </div>
        </div>
        <div id="banner4_login">
            <div id="copy">
                Copyright © 2012&nbsp;大庆档案综合管理平台&nbsp;All Rights Reserved.</div>
        </div>
    </div>
    <div>
        <table align="center" width="100%" border="0">
            <tr>
                <td valign="middle" align="center">
                    <asp:Label runat="server" ID="lblErrorMessage" ForeColor="red"></asp:Label>
                    <asp:RequiredFieldValidator ID="RequiredFieldUserID" runat="server" Display="None"
                        ControlToValidate="txtUserID" ErrorMessage='请输入用户名'>
                    </asp:RequiredFieldValidator>
                    <asp:RequiredFieldValidator ID="RequiredFieldPassword" runat="server" Display="None"
                        ControlToValidate="txtPasswd" ErrorMessage='请输入密码'>
                    </asp:RequiredFieldValidator>
                    <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True"
                        ShowSummary="False"></asp:ValidationSummary>
                </td>
            </tr>
            <tr>
                <td valign="bottom">
                    <asp:Literal runat="server" ID="Literal1"></asp:Literal>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
